package com.tengfei.main.question.domain.export;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.tengfei.common.annotation.ExcelDictFormat;
import com.tengfei.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author feige
 * @version v1.0
 * @date 2022-10-19-15:34
 * @description
 */

@Data
@ApiModel("主观题导出视图")
public class SubExportVo implements Serializable {

    /**
     * 主键
     */
    @ExcelProperty(value = "主观题id")
    private Long subId;

    /**
     * 主观题内容
     */
    @ExcelProperty(value = "主观题内容")
    private String subContent;

    /**
     * 主观题类型
     */
    @ExcelProperty(value = "主观题类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "qb_qu_type")
    private Integer subType;

    /**
     * 难度等级
     */
    @ExcelProperty(value = "难度等级(1~5星)")
    private Integer subGrand;

    /**
     * 知识点
     */
    @ExcelProperty(value = "知识点")
    private String subTag;


    /**
     * 答案
     */
    @ExcelProperty(value = "答案(多个答案用$分隔)")
    private String subAnswer;

    /**
     * 题目解析
     */
    @ExcelProperty(value = "题目解析")
    private String subAnswerContent;


    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 修改时间
     */
    @ExcelProperty(value = "修改时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
